package org.layui.test;

import org.layui.dao.UserDao;
import org.layui.dao.impl.UserDaoImpl;
import org.layui.entity.User;

public class MainTest01 {
    public static void main(String[] args) {
        UserDao userDao = new UserDaoImpl();
        User u = userDao.selectUser("zing");

        if(u==null) {
            System.out.println("错误的帐号或密码");
            return ;
        }

        System.out.println(u.getPassword());

        if("123456".equals(u.getPassword().trim())) {
            System.out.println("登录成功");
        } else {
            System.out.println("登录失败");
        }
    }
}
